package com.muyan.sys.framework.web.exception;


/**
 * 异常信息
 * @author lrc
 *
 */

public class ExceptionBody {

    private String timestamp;
    private Integer status;
    private String error;
    private String message;
    private String path;
    private Object data;
    

    private ExceptionBody(Integer status, String error, String message, String path) {
        this.timestamp = System.currentTimeMillis() + "";
        this.status = status;
        this.error = error;
        this.message = message;
        this.path = path;
    }

    public static ExceptionBody of(Integer status, String error, String message, String path) {
        return new ExceptionBody(status, error, message,path);
    }

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getTimestamp() {
		return timestamp;
	}
	
	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	
}
